	function MostrarVentanaAcceso()
  {
	loading();
	loadPopup();
  }

	$(&quot;a.topopup&quot;).click(function() {
	return false;
	});

	/* event for close the popup */
	$(&quot;div.close&quot;).hover(
					function() {
						$(&#39;span.ecs_tooltip&#39;).show();
					},
					function () {
    					$(&#39;span.ecs_tooltip&#39;).hide();
  					}
				);

	$(&quot;div.close&quot;).click(function() {
		disablePopup();  // function close pop up
	});

	$(this).keyup(function(event) {
		if (event.which == 27) { // 27 is &#39;Ecs&#39; in the keyboard
			disablePopup();  // function close pop up
		}
	});

        $(&quot;div#backgroundPopup&quot;).click(function() {
		disablePopup();  // function close pop up
	});

	$(&#39;a.livebox&#39;).click(function() {
		alert(&#39;Hello World!&#39;);
	return false;
	});

	 /************** start: functions. **************/
	function loading() {
		$(&quot;div.loader&quot;).show();
	}
	function closeloading() {
		$(&quot;div.loader&quot;).fadeOut(&#39;normal&#39;);
	}

	var popupStatus = 0; // set value

	function loadPopup() {
		if(popupStatus == 0) { // if value is 0, show popup
			closeloading(); // fadeout loading
			$(&quot;#toPopup&quot;).fadeIn(0500); // fadein popup div
			$(&quot;#backgroundPopup&quot;).css(&quot;opacity&quot;, &quot;0.7&quot;); // css opacity, supports IE7, IE8
			$(&quot;#backgroundPopup&quot;).fadeIn(0001);
			popupStatus = 1; // and set value to 1
		}
	}

	function disablePopup() {
		if(popupStatus == 1) { // if value is 1, close popup
			$(&quot;#toPopup&quot;).fadeOut(&quot;normal&quot;);
			$(&quot;#backgroundPopup&quot;).fadeOut(&quot;normal&quot;);
			popupStatus = 0;  // and set value to 0
		}
	}
	/************** end: functions. **************/

